<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content=
    "application/xhtml+xml; charset=iso-8859-1" />
    <title>
      at-3.1.23
    </title>
    <link rel="stylesheet" type="text/css" href="../stylesheets/lfs.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.78.1" />
    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=
    "text/css" media="print" />
  </head>
  <body class="blfs" id="blfs-2020-04-02">
    <div class="navheader">
      <h4>
        Beyond Linux<sup>�</sup> From Scratch <span class="phrase">(System
        V</span> Edition) - Version 2020-04-02
      </h4>
      <h3>
        Chapter&nbsp;12.&nbsp;System Utilities
      </h3>
      <ul>
        <li class="prev">
          <a accesskey="p" href="acpid.html" title="acpid-2.0.32">Prev</a>
          <p>
            acpid-2.0.32
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="autofs.html" title="autofs-5.1.6">Next</a>
          <p>
            autofs-5.1.6
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="sysutils.html" title=
          "Chapter&nbsp;12.&nbsp;System Utilities">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 2020-04-02">
          Home</a>
        </li>
      </ul>
    </div>
    <div class="sect1" lang="en" xml:lang="en">
      <h1 class="sect1">
        <a id="at" name="at"></a>at-3.1.23
      </h1>
      <div class="package" lang="en" xml:lang="en">
        <h2 class="sect2">
          Introduction to at
        </h2>
        <p>
          The <span class="application">at</span> package provide delayed job
          execution and batch processing. It is required for Linux Standards
          Base (LSB) conformance.
        </p>
        <p>
          This package is known to build and work properly using an LFS-9.1
          platform.
        </p>
        <h3>
          Package Information
        </h3>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Download (HTTP): <a class="ulink" href=
                "http://ftp.debian.org/debian/pool/main/a/at/at_3.1.23.orig.tar.gz">
                http://ftp.debian.org/debian/pool/main/a/at/at_3.1.23.orig.tar.gz</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download MD5 sum: 1cec945506b5ddf1d776c92c315fc581
              </p>
            </li>
            <li class="listitem">
              <p>
                Download size: 272 KB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated disk space required: 1.6 MB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated build time: less than 0.1 SBU
              </p>
            </li>
          </ul>
        </div>
        <h3>
          at Dependencies
        </h3>
        <h4>
          Required
        </h4>
        <p class="required">
          An <a class="xref" href="../server/mail.html" title=
          "Chapter&nbsp;21.&nbsp;Mail Server Software">MTA</a>
        </p>
        <h4>
          Optional
        </h4>
        <p class="optional">
          <a class="xref" href="../postlfs/linux-pam.html" title=
          "Linux-PAM-1.3.1">Linux-PAM-1.3.1</a>
        </p>
        <p class="usernotes">
          User Notes: <a class="ulink" href=
          "http://wiki.linuxfromscratch.org/blfs/wiki/at">http://wiki.linuxfromscratch.org/blfs/wiki/at</a>
        </p>
      </div>
      <div class="installation" lang="en" xml:lang="en">
        <h2 class="sect2">
          Installation of at
        </h2>
        <p>
          Before building <span class="application">at</span>, as the
          <code class="systemitem">root</code> user you should create the
          group and user <code class="systemitem">atd</code> which will run
          the <span class="command"><strong>atd</strong></span> daemon. Also
          ensure the working directory for the daemon exists:
        </p>
        <pre class="root">
<kbd class=
"command">groupadd -g 17 atd                                                  &amp;&amp;
useradd -d /dev/null -c "atd daemon" -g atd -s /bin/false -u 17 atd &amp;&amp;
mkdir -p /var/spool/cron</kbd>
</pre>
        <p>
          Fix <code class="filename">Makefile.in</code> so that the
          documentation directory is installed in the specified docdir:
        </p>
        <pre class="userinput">
<kbd class="command">sed -i '/docdir/s/=.*/= @docdir@/' Makefile.in</kbd>
</pre>
        <p>
          Regenerate the build files to be consistent with this package
          version:
        </p>
        <pre class="userinput">
<kbd class="command">autoreconf</kbd>
</pre>
        <p>
          Install <span class="application">at</span> with the following
          commands:
        </p>
        <pre class="userinput">
<kbd class="command">./configure --with-daemon_username=atd        \
            --with-daemon_groupname=atd       \
            SENDMAIL=/usr/sbin/sendmail       &amp;&amp;

make -j1</kbd>
</pre>
        <p>
          This package does not come with a test suite.
        </p>
        <p>
          Now, as the <code class="systemitem">root</code> user:
        </p>
        <pre class="root">
<kbd class="command">make install docdir=/usr/share/doc/at-3.1.23 \
             atdocdir=/usr/share/doc/at-3.1.23</kbd>
</pre>
      </div>
      <div class="configuration" lang="en" xml:lang="en">
        <h2 class="sect2">
          Configuring at
        </h2>
        <div class="sect3" lang="en" xml:lang="en">
          <h3 class="sect3">
            <a id="at-config" name="at-config"></a>
          </h3>
          <h4 class="title">
            <a id="at-config" name="at-config"></a>Config Files
          </h4>
          <p>
            <code class="filename">/etc/at.allow</code> and <code class=
            "filename">/etc/at.deny</code> determines who can submit jobs via
            at or batch.
          </p>
        </div>
        <div class="sect3" lang="en" xml:lang="en">
          <h3 class="sect3">
            <a id="at-init" name="at-init"></a>
          </h3>
          <h4 class="title">
            <a id="at-init" name="at-init"></a><span class="phrase">Boot
            Script</span>
          </h4>
          <p>
            Install the <code class="filename">/etc/init.d/atd</code> init
            script from the <a class="xref" href=
            "../introduction/bootscripts.html" title=
            "BLFS Boot Scripts">blfs-bootscripts-20191204</a> package.
          </p>
          <pre class="root">
<kbd class="command">make install-atd</kbd>
</pre>
        </div>
      </div>
      <div class="content" lang="en" xml:lang="en">
        <h2 class="sect2">
          Contents
        </h2>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong class="segtitle">Installed Programs:</strong>
              <span class="segbody">at, atd, atq (symlink), atrm (symlink),
              atrun, and batch</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Libraries:</strong>
              <span class="segbody">None</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Directories:</strong>
              <span class="segbody">/var/spool/cron/at{jobs,spool} and
              /usr/share/doc/at-3.1.23</span>
            </div>
          </div>
        </div>
        <div class="variablelist">
          <h3>
            Short Descriptions
          </h3>
          <table border="0" class="variablelist">
            <colgroup>
              <col align="left" valign="top" />
              <col />
            </colgroup>
            <tbody>
              <tr>
                <td>
                  <p>
                    <a id="at-prog" name="at-prog"></a><span class=
                    "term"><span class=
                    "command"><strong>at</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    queues, examines or deletes jobs for later execution.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="atd" name="atd"></a><span class=
                    "term"><span class="command"><strong>atd</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is the daemon that runs jobs queued for later execution.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="atq" name="atq"></a><span class=
                    "term"><span class="command"><strong>atq</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    lists the user's pending jobs, or all jobs, if superuser.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="atrm" name="atrm"></a><span class=
                    "term"><span class=
                    "command"><strong>atrm</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    deletes jobs, identified by their job number.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="atrun" name="atrun"></a><span class=
                    "term"><span class=
                    "command"><strong>atrun</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    runs jobs queued for later execution.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="batch" name="batch"></a><span class=
                    "term"><span class=
                    "command"><strong>batch</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is a script that executes commands when system load
                    levels permit.
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
      <p class="updated">
        Last updated on 2020-03-19 05:00:16 -0500
      </p>
    </div>
    <div class="navfooter">
      <ul>
        <li class="prev">
          <a accesskey="p" href="acpid.html" title="acpid-2.0.32">Prev</a>
          <p>
            acpid-2.0.32
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="autofs.html" title="autofs-5.1.6">Next</a>
          <p>
            autofs-5.1.6
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="sysutils.html" title=
          "Chapter&nbsp;12.&nbsp;System Utilities">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 2020-04-02">
          Home</a>
        </li>
      </ul>
    </div>
  </body>
</html>
